/**
 * Periodo.java
 */

 /**
 *  AdSec: Administrador de Secundarias
 *  Copyright (C) 2009 Daniela Ramírez Chaves (dannyrch@gmail.com)
 *  Copyright (C) 2009 Leonel Salazar Valverde (leo87sv@gmail.com)
 *
 *  This file is part of AdSec.
 *  AdSec is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  AdSec is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with AdSec.  If not, see <http://www.gnu.org/licenses/>.
 */

package adsec.entidades;


public class Periodo {

    // <editor-fold defaultstate="collapsed" desc="Constantes de Nombres de Columnas">
    public final static String nombreTabla = "periodo_lectivo";
    public static final String idMateriaNC = "id_materia";
    public static final String idMateriaCursadaNC = "id_materia_cursada";
    public static final String numPeriodoNC = "num_periodo";
    public static final String porcentajeNC = "porcentaje";
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Atributos privados de la clase">
    private int idMateria;
    private int idMateriaCursada;
    private int numPeriodo;
    private double porcentaje;
    // </editor-fold>

    public Periodo(){
        this.idMateria = this.idMateriaCursada = Materia.MATERIA_NULA;
        this.numPeriodo = 0;
        this.porcentaje = 0.0;
    }//fin de constructor

    public Periodo(int idMateria, int idMateriaCursada, int numPeriodo, double porcentaje){
        this.idMateria = idMateria;
        this.idMateriaCursada = idMateriaCursada;
        this.numPeriodo = numPeriodo;
        this.porcentaje = porcentaje;
    }//fin de constructor


    /**
     * @return the idMateria
     */
    public int getIdMateria() {
        return idMateria;
    }

    /**
     * @param idMateria the idMateria to set
     */
    public void setIdMateria(int idMateria) {
        this.idMateria = idMateria;
    }

    /**
     * @return the idMateriaCursada
     */
    public int getIdMateriaCursada() {
        return idMateriaCursada;
    }

    /**
     * @param idMateriaCursada the idMateriaCursada to set
     */
    public void setIdMateriaCursada(int idMateriaCursada) {
        this.idMateriaCursada = idMateriaCursada;
    }

    /**
     * @return the numPeriodo
     */
    public int getNumPeriodo() {
        return numPeriodo;
    }

    /**
     * @param numPeriodo the numPeriodo to set
     */
    public void setNumPeriodo(int numPeriodo) {
        this.numPeriodo = numPeriodo;
    }

    /**
     * @return the porcentaje
     */
    public double getPorcentaje() {
        return porcentaje;
    }

    /**
     * @param porcentaje the porcentaje to set
     */
    public void setPorcentaje(double porcentaje) {
        this.porcentaje = porcentaje;
    }
}//fin de clase Periodo
